import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';

@Entity('t_device')
export class TDevice {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ length: 50 })
  user_id: string;

  @Column({ length: 100 })
  device_mac: string;

  @Column({ length: 50, nullable: true })
  device_imei1: string;

  @Column({ length: 50, nullable: true })
  device_imei2: string;

  @Column({ length: 50, nullable: true })
  user_name: string;


    @Column({ length: 50, nullable: true })
  sdcard: string;

    @Column({ length: 50, nullable: true })
  mem: string;

    @Column({ length: 50, nullable: true })
  useman: string;

    @Column({ length: 50, nullable: true })
  price: string;


  @Column({ default: true })
  is_active: boolean;

  @CreateDateColumn()
  created_at: Date;

  @UpdateDateColumn()
  updated_at: Date;

} 